import org.junit.Test;

public class ThreadStatus {
    @Test
    public void test1() {
        Thread t1 = new Thread(() -> System.out.println("aaa"));
        t1.start();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(t1.getState());
    }

}
